﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserCard.aspx.cs" Inherits="MLY.ADMIN.UserCard"
    MasterPageFile="~/admin/AdminMaster.master" Title='<%$Dict:userCard.Title%>' %>

<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
       
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <asp:Label ID="lblUpdatingUserMsgSucc" ForeColor="Green" runat="server" Text='<%$Dict:userCard.SuccessUpdatingUser%>'
        Visible="false"></asp:Label>
    <asp:Label ID="lblUpdatingUserMsgErr" ForeColor="Red" runat="server" Text='<%$Dict:userCard.ErrorUpdatingUser%>'
        Visible="false"></asp:Label>
    <br />
    <table id="win-xp" class="blueTxtBox userTbl" width="371px" border="0" cellpadding="0"
        cellspacing="0">
        <tr>
            <td>
                <img src="../Images/user%20info/contact_person_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text='<%$Dict:userCard.UserName%>'></asp:Label>
            </td>
            <td style="width: 215px;">
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                    Display="Dynamic" ErrorMessage="*" ValidationGroup="RequiredVals"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/contact_person_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label4" runat="server" Text='<%$Dict:userCard.FullName%>'></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFullName" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/password_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label5" runat="server" Text='<%$Dict:userCard.PassWord%>'></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server"
                    ControlToValidate="txtPassword" ErrorMessage="required" ValidationGroup="RequiredVals"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/Default-Days-Daviation_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label6" runat="server" Text='<%$Dict:userCard.Organization%>'></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownOrganization" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="OrganizationName" DataValueField="OrganizationId" CssClass="filterDdl">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
                    SelectCommand="SELECT [OrganizationId], [OrganizationName] FROM [TableOrganizations]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/permission_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label7" runat="server" Text="Role"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownRole" runat="server" DataSourceID="SqlDataSource2"
                    DataTextField="RollDescription" DataValueField="RollId" CssClass="filterDdl">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
                    SelectCommand="SELECT [RollId], [RollDescription] FROM [LookupRolls]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/email_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label8" runat="server" Text='<%$Dict:userCard.Email%>'></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                    Display="Dynamic" ErrorMessage="invalid mail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/phone_num_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label9" runat="server" Text='<%$Dict:userCard.PhoneNumber%>'></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <img src="../Images/user%20info/address_icon.png" />
            </td>
            <td>
                <asp:Label ID="Label10" runat="server" Text='<%$Dict:userCard.Address%>'></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="Label1" runat="server" Text='<%$Dict:userCard.Culture%>'></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="langDdl" runat="server" CssClass="filterDdl">
                    <asp:ListItem Text="English" Value="en">
                    </asp:ListItem>
                    <asp:ListItem Text="עברית" Value="he">
                    </asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="Label2" runat="server" Text='<%$Dict:userCard.RowsInTable%>'></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="rowsInTableTxt" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="Label11" runat="server" Text="Encoding"></asp:Label>
            </td>
            <td id="win-xp">
                <asp:DropDownList ID="EncodingDdl" runat="server" DataSourceID="SqlDataSource3" DataTextField="Encoding_Name"
                    AppendDataBoundItems="true" DataValueField="Idx" CssClass="filterDdl">
                    <asp:ListItem Value="" Text="Default" Selected="True"></asp:ListItem>
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
                    SelectCommand="SELECT * FROM [Lookup_Encoding]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="Label12" runat="server" Text='<%$Dict:userCard.DefaultDate%>'></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="dateFormatDdl" runat="server" CssClass="filterDdl">
                    <asp:ListItem Text="MM/dd/yyyy"></asp:ListItem>
                    <asp:ListItem Text="mm-dd-yyyy"></asp:ListItem>
                    <asp:ListItem Text="mm/dd/yy"></asp:ListItem>
                    <asp:ListItem Text="MM-dd-yy"></asp:ListItem>
                    <asp:ListItem Text="dd/MM/yyyy"></asp:ListItem>
                    <asp:ListItem Text="dd-MM-yyyy"></asp:ListItem>
                    <asp:ListItem Text="dd/MM/yy"></asp:ListItem>
                    <asp:ListItem Text="dd-MM-yy"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="3">
              
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <table class="bottomBtnsCls" width="120" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:ImageButton ID="ImageButton2" Width="13" Height="13" runat="server" ImageUrl="~/Images/add_wo/close_icon.png"
                                CausesValidation="false" OnClick="btnClose_Click" />&nbsp
                        </td>
                        <td>
                            <asp:Literal ID="Literal20" runat="server" Text='<%$Dict:clientAddWo.Close %>' />
                        </td>
                        <td>
                            <asp:ImageButton ID="ImageButton3" runat="server" Width="13" Height="13" ImageUrl="~/Images/add_wo/save_icon.png"
                                CausesValidation="true" OnClick="btnSave_Click" />
                        </td>
                        <td>
                            <asp:Literal ID="Litearl1" runat="server" Text='<%$Dict:clientAddWo.Save %>' />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
